package com.devunion.salon.client.app.bean;

import com.extjs.gxt.ui.client.data.BeanModel;
import com.extjs.gxt.ui.client.data.BaseModel;
import com.extjs.gxt.ui.client.data.BaseTreeModel;

import java.io.Serializable;

/**
 * @author spetrakovsky
 */
public class DepartmentModel extends BaseTreeModel {

    public DepartmentModel() {
        super();
    }

    public DepartmentModel(Long id, String name) {
        super();
        setId(id);
        setName(name);
    }

    public Long getId() {
        return get("id");
    }

    public void setId(Long id) {
        set("id", id);
    }

    public String getName() {
        return this.get("name");
    }

    public void setName(String name) {
        set("name", name);
    }
    
}
